﻿<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Default.aspx.cs" Inherits="WebCalculator.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Web Calculator</title>
</head>
<body>
    <form id="calculatorForm" runat="server">
    <div>
    
        <asp:TextBox ID="txtDisplay" runat="server" Width="200px" style="text-align:right"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="btnNum1" runat="server" onclick="btnNum1_Click" Text="1" 
            Width="35px" />
        <asp:Button ID="btnNum2" runat="server" Text="2" Width="35px" 
            onclick="btnNum2_Click" />
        <asp:Button ID="btnNum3" runat="server" Text="3" Width="35px" 
            onclick="btnNum3_Click" />
        <asp:Button ID="btnAdd" runat="server" Text="+" Width="35px" 
            onclick="btnAdd_Click" />
        <asp:Button ID="btnErase" runat="server" Height="25px" Text="E" Width="54px" 
            onclick="btnErase_Click" />
    
        <br />
        <asp:Button ID="btnNum4" runat="server" Text="4" Width="35px" 
            onclick="btnNum4_Click" />
        <asp:Button ID="btnNum5" runat="server" Text="5" Width="35px" 
            onclick="btnNum5_Click" />
        <asp:Button ID="btnNum6" runat="server" Text="6" Width="35px" 
            onclick="btnNum6_Click" />
        <asp:Button ID="btnSub" runat="server" Text="-" Width="35px" 
            onclick="btnSub_Click" />
        <asp:Button ID="btnDelete" runat="server" Height="25px" Text="DEL" Width="54px" 
            onclick="btnDelete_Click" />
    
        <br />
        <asp:Button ID="btnNum7" runat="server" Text="7" Width="35px" 
            onclick="btnNum7_Click" />
        <asp:Button ID="btnNum8" runat="server" Text="8" Width="35px" 
            onclick="btnNum8_Click" />
        <asp:Button ID="btnNum9" runat="server" Text="9" Width="35px" 
            onclick="btnNum9_Click" />
        <asp:Button ID="btnMul" runat="server" Text="*" Width="35px" 
            onclick="btnMul_Click" />
        <br />
        <asp:Button ID="btnNum0" runat="server" Text="0" Width="35px" 
            onclick="btnNum0_Click" />
        <asp:Button ID="btnSqrt" runat="server" Text="sqrt" Width="35px" 
            onclick="btnSqrt_Click" />
        <asp:Button ID="btnModule" runat="server" Text="mod" Width="35px" 
            onclick="btnModule_Click" />
        <asp:Button ID="btnDiv" runat="server" Text="/" Width="35px" 
            onclick="btnDiv_Click" />
        <asp:Button ID="btnEquals" runat="server" Height="25px" Text="=" Width="54px" 
            onclick="btnEquals_Click" />
    
        <br />
        <asp:Label ID="lblErrorMessage" runat="server"></asp:Label>
    
    </div>
    </form>
</body>
</html>
